package com.wxzz.elearing.evaluation.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.wxzz.elearning.common.bean.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 测评题库
 * </p>
 *
 * @author
 * @since 2021-04-10
 */
@Data
@ApiModel(value = "Topic对象", description = "测评题库")
public class Topic extends BaseEntity {

    @ApiModelProperty(value = "题目名称")
    private String topicName;

    @ApiModelProperty(value = "题目类型  0-单选 1-多选 2-判断")
    private Integer topicType;

    @ApiModelProperty(value = "题目分类id")
    private Long topicCategoryId;

    @ApiModelProperty(value = "限制选择个数")
    private Integer chooseNum;

    @TableField(exist = false)
    @ApiModelProperty(value = "工厂体检/星级认证/能力测评关联题目id")
    private Long businessCategoryTopicId;

    @TableField(exist = false)
    @ApiModelProperty(value = "组别管理id")
    private Long businessCategoryId;

    @TableField(exist = false)
    @ApiModelProperty(value = "组别名称")
    private String businessName;

    @TableField(exist = false)
    @ApiModelProperty(value = "题目答案选项")
    private List<TopicAnswer> topicAnswerList;

    @TableField(exist = false)
    @ApiModelProperty(value = "选项数量")
    private Integer topicAnswerNum = 0;

    @TableField(exist = false)
    @ApiModelProperty(value = "题目使用数量")
    private Integer topicUseNum = 0;

    @TableField(exist = false)
    @ApiModelProperty(value = "是否做过 0-否 1-是 ")
    private Integer isChoose = 0;

}
